package org.xfg.domain.active.model.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.xfg.domain.active.model.valobj.UserRaffleOrderStateVO;

import java.util.Date;

/**
 * 用户订单实体对象创建
 * 用户参与抽奖看做是一个抽奖订单的创建
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserRaffleOrderEntity {

    /* 用户id */
    private String userId;
    /* 活动id */
    private Long activityId;
    /* 活动名称 */
    private String activityName;
    /* 抽奖策略ID */
    private Long strategyId;
    /* 订单id */
    private String orderId;
    /* 订单时间 */
    private Date orderTime;

    /* 订单状态；create-创建、used-已使用、cancel-已作废 */
    private UserRaffleOrderStateVO orderState;

}
























